<?php
namespace app\api\controller;

use app\index\model\NewsModel;
use think\View;

class Base
{
    public function __construct ()
    {
    }

    protected function ajaxReturn ($data, $status = 200)
    {
        header('Content-type: application/json');
        echo json_encode ($data);
        exit;
    }
}
